﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<t_205_verk_hopur_12.Models.ChannelNoticeViewModel>" %>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
            <div class="editor-label">
                 Titill
            </div>
            <div class="editor-field">
                 <%= Html.TextBoxFor(model => model.Announcement.Title) %>
                <%= Html.ValidationMessageFor(model => model.Announcement.Title) %>
            </div>
            <div class="clear"></div>

            <div class="editor-label">
                Tilkynning
            </div>
            <div class="editor-field">
                <%= Html.TextAreaFor(model => model.Announcement.Body) %>
                <%= Html.ValidationMessageFor(model => model.Announcement.Body) %>
            </div>
            <div class="clear"></div>

        <p>
        <input type="submit" value="Skrá tilkynningu" />
        </p>

    <% } %>

<div>
<%= Html.ActionLink("Til baka", "Notice", new { id = Model.Channel.ID}, null)%>
</div>